package com.smh.a01butteredInputOrOutputStream;

import java.io.*;

public class BufferedStreamDemo3 {
    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new FileReader("day27-code\\file\\a.txt"));
        BufferedWriter bw = new BufferedWriter(new FileWriter("day27-code\\file\\b.txt"));

        char[] chars = new char[1024 * 1024];
        int len;
        while ((len = br.read(chars)) != -1) {
            bw.write(chars, 0, len);
        }

        bw.close();
        br.close();


    }
}
